package com.godpaper.as9.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.godpaper.as9.commands.FindPhotosByNameCommand;
	import com.godpaper.as9.commands.FindPhotosByTagCommand;
	import com.godpaper.as9.commands.GetPhotoInfoCommand;
	import com.godpaper.as9.commands.GetPhotoListCommand;
	import com.godpaper.as9.commands.GetThumbnailListCommand;
	import com.godpaper.as9.commands.SetPhotoInfoCommand;
	import com.godpaper.as9.commands.TryDeletePhotoCommand;

	public class PhotoController extends FrontController
	{
		public static const GET_PHOTO_LIST:String 		= "getPhotoList";
		public static const SET_PHOTO_INFO:String 		= "setPhotoInfo";
		public static const GET_PHOTO_INFO:String 		= "getPhotoInfo";
		public static const FIND_PHOTOS_BY_TAG:String 	= "findPhotosByTag";
		public static const FIND_PHOTOS_BY_NAME:String 	= "findPhotosByName";
		public static const GET_PHOTO_ANALYZE:String 	= "getPhotoAnalyze";
		public static const TRY_DELETE_PHOTO:String		= "tryDeletePhoto";
		public static const GET_THUMBNAIL_LIST:String	= "getThumbnailList";
		
		public function PhotoController()
		{
			super();
			addCommand(PhotoController.GET_PHOTO_LIST,GetPhotoListCommand);
			addCommand(PhotoController.SET_PHOTO_INFO,SetPhotoInfoCommand);
			addCommand(PhotoController.GET_PHOTO_INFO,GetPhotoInfoCommand);
			addCommand(PhotoController.FIND_PHOTOS_BY_TAG,FindPhotosByTagCommand);
			addCommand(PhotoController.FIND_PHOTOS_BY_NAME,FindPhotosByNameCommand);
			addCommand(PhotoController.TRY_DELETE_PHOTO,TryDeletePhotoCommand);
			addCommand(PhotoController.GET_THUMBNAIL_LIST,GetThumbnailListCommand);
		}
		
	}
}